package cc.comac.mom.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.QualityProgressExplainService;
import cc.comac.mom.bean.QualityProgressExplain;
import cc.comac.mom.util.ResultBean;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/QualityProgressExplain")
public class QualityProgressExplainController {
	
	@Autowired
	private QualityProgressExplainService  qualityProgressExplainService;

	@ApiOperation("新增进度说明")
	@RequestMapping(value = "/insert",method = RequestMethod.POST)
	public ResultBean insert(@RequestBody QualityProgressExplain obj) {
		return qualityProgressExplainService.insert(obj);
	}
	
	@ApiOperation("查询进度说明(分页)")
	@RequestMapping(value = "/selectByCondition",method = RequestMethod.POST)
	public ResultBean selectByCondition(@RequestBody QualityProgressExplain obj) {
		return qualityProgressExplainService.selectByCondition(obj);
	}
}
